<?php
namespace Acme\TaskBundle\Entity;

class Tag
{
    public $name;
    
    public function addTest(Test $test)
    {
        if (!$this->tests->contains($test)) {
            $this->tests->add($test);
        }
    }
}